package com.financial.transactionhistory.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * TODO
 * discrb:
 *
 * @Author CD
 * @Date2025/6/16 18:33
 */
@Data
public class FinancialBudgetAddDto {
    private Long id;
    private String budgetName;
    private BigDecimal amount;
    private BigDecimal usedAmount;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate startTime;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate endTime;
}
